function drawTable(xbottom,ybottom,zbottom,xtop,ytop,ztop)

%1 first
xtopAll = [rev(-xtop),xtop];
ytopAll = [rev(ytop),ytop ];
ztopAll = [rev(ztop),ztop ];

xbottomAll = [rev(-xbottom),xbottom];
ybottomAll = [rev(ybottom),ybottom ];
zbottomAll = [rev(zbottom),zbottom ];

n = length(xtopAll);
for i = 1:length(xtopAll)
plot3([xtopAll(i) xbottomAll(i)],[ytopAll(i) ybottomAll(i)],[ztopAll(i) zbottomAll(i) ]);
hold on ;       %%%%%%%%%%%%%%%%%%%ononononono on on on on on on on o no no non on on
end
plot3(xbottomAll,ybottomAll,zbottomAll,'r*--')



%2 second
xbottomOther = xbottomAll;
ybottomOther = -ybottomAll;
zbottomOther = zbottomAll;

xtopOther = xtopAll;
ytopOther = -ytopAll;
ztopOther = ztopAll;

for i = 1:length(xtopOther)
plot3([xtopOther(i) xbottomOther(i)],[ytopOther(i) ybottomOther(i)],[ztopOther(i) zbottomOther(i) ]);
end

%3 third drawing
for i = 1:n
plot3([xtopAll(i), xtopOther(i) ],[ ytopAll(i),ytopOther(i) ],[ztopAll(i) , ztopOther(i) ]);
end
set(gca,'zdir','reverse');
set(gca,'ydir','reverse');
view(83,26);




%{
%create a movie
n = 50;
[az, el] = view();
M = moviein(n);
for i = 1:n
    view(az + i * 360 / n,el);
    M(i) = getframe();
end

movie(M);
%}
